const adminApi = require('./api/adminApi');
const userApi = require('./api/userApi');
const planeApi = require('./api/planeApi');
const flightApi = require('./api/flightApi');
const orderApi = require('./api/orderApi');
const fareApi = require('./api/fareApi');
const ticketApi = require('./api/ticketApi');
const fs = require('fs');
const path = require('path');
const bodyParser = require('body-parser');
const express = require('express');
const app = express();

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
    extended: false
}));

app.use('/api/admin',adminApi);
app.use('/api/user',userApi);
app.use('/api/plane',planeApi);
app.use('/api/flight',flightApi);
app.use('/api/order',orderApi);
app.use('/api/fare',fareApi);
app.use('/api/ticket',ticketApi)

app.listen(3000);
console.log('success listen at port:3000......');